package com.px.device.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.px.device.mapper.RoutesConfigMapper;
import com.px.device.domain.RoutesConfig;
import com.px.device.service.IRoutesConfigService;

/**
 * 航线配置Service业务层处理
 * 
 * @author WRJ
 * @date 2024-08
 */
@Service
public class RoutesConfigServiceImpl implements IRoutesConfigService 
{
    @Autowired
    private RoutesConfigMapper routesConfigMapper;

    /**
     * 查询航线配置
     * 
     * @param routesConfigId 航线配置主键
     * @return 航线配置
     */
    @Override
    public RoutesConfig selectRoutesConfigByRoutesConfigId(Long routesConfigId)
    {
        return routesConfigMapper.selectRoutesConfigByRoutesConfigId(routesConfigId);
    }

    /**
     * 查询航线配置列表
     * 
     * @param routesConfig 航线配置
     * @return 航线配置
     */
    @Override
    public List<RoutesConfig> selectRoutesConfigList(RoutesConfig routesConfig)
    {
        return routesConfigMapper.selectRoutesConfigList(routesConfig);
    }

    /**
     * 新增航线配置
     * 
     * @param routesConfig 航线配置
     * @return 结果
     */
    @Override
    public int insertRoutesConfig(RoutesConfig routesConfig)
    {
        return routesConfigMapper.insertRoutesConfig(routesConfig);
    }

    /**
     * 修改航线配置
     * 
     * @param routesConfig 航线配置
     * @return 结果
     */
    @Override
    public int updateRoutesConfig(RoutesConfig routesConfig)
    {
        return routesConfigMapper.updateRoutesConfig(routesConfig);
    }

    /**
     * 批量删除航线配置
     * 
     * @param routesConfigIds 需要删除的航线配置主键
     * @return 结果
     */
    @Override
    public int deleteRoutesConfigByRoutesConfigIds(Long[] routesConfigIds)
    {
        return routesConfigMapper.deleteRoutesConfigByRoutesConfigIds(routesConfigIds);
    }

    /**
     * 删除航线配置信息
     * 
     * @param routesConfigId 航线配置主键
     * @return 结果
     */
    @Override
    public int deleteRoutesConfigByRoutesConfigId(Long routesConfigId)
    {
        return routesConfigMapper.deleteRoutesConfigByRoutesConfigId(routesConfigId);
    }
}
